// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import moment from 'moment'
import store from '@/store/store.js'


Vue.config.productionTip = false
Vue.use(MintUI)

//图片懒加载
import { Lazyload } from 'mint-ui';

Vue.use(Lazyload)

//缩略图
import VuePreview from 'vue-preview'

Vue.use(VuePreview)

import '../lib/mui/css/mui.min.css'
import 'mint-ui/lib/style.css'
import '../lib/mui/css/icons-extra.css'
import '../lib/css/golbal.css'

//格式化时间
Vue.filter('timeF', function(value) {
    return moment(value).format('YYYY-MM-DD HH-mm-ss')
})

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
})